<template>
  <div id="earlyStageAchievementOpinion" v-loading="fullLoaing">
    <el-tabs v-model="flag" @tab-click="handleClick">
      <el-tab-pane label="基本信息" name="1"></el-tab-pane>
      <el-tab-pane label="审查流程" name="2"></el-tab-pane>
    </el-tabs>
    <div class="MainBox1" v-show="flag=='2'">
      <optionList :optionListCode="optionListCode" />
    </div>
    <div class="MainBox" v-show="flag=='1'">
      <div class="boxItem boxItem1">
        <div class="boxItem_title">
          <span class="tit">项目基本信息</span>
        </div>
        <div class="boxItem_content" style="padding-top:35px;">
          <el-row :gutter="20">
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>项目名称：</p>
                <el-tooltip
                  class="item"
                  effect="dark"
                  :content="mainData.projectName"
                  placement="top-start"
                >
                  <div class="boxItem_content_row_item_input">
                    <el-input v-model="mainData.projectName" readonly suffix></el-input>
                  </div>
                </el-tooltip>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>合格证配号编号：</p>

                <div class="boxItem_content_row_item_input">
                  <el-input v-model="mainData.number" readonly suffix></el-input>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>减少建设用地：</p>
                <div class="boxItem_content_row_item_input">
                  <el-input v-model="mainData.yjjsj" readonly suffix placeholder></el-input>
                  <span class="inputEndText">公顷</span>
                </div>
              </div>
            </el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>新增农用地：</p>
                <div class="boxItem_content_row_item_input">
                  <el-input v-model="mainData.yjzjn" readonly suffix placeholder></el-input>
                  <span class="inputEndText">公顷</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>新增耕地：</p>
                <div class="boxItem_content_row_item_input">
                  <el-input v-model="mainData.yjzjg" readonly suffix placeholder></el-input>
                  <span class="inputEndText">公顷</span>
                </div>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>项目类型：</p>
                <div class="boxItem_content_row_item_input">
                  <el-tooltip
                    class="item"
                    effect="dark"
                    :content="mainData.projectType"
                    placement="top-start"
                  >
                    <el-input v-model="mainData.projectType" readonly suffix placeholder></el-input>
                  </el-tooltip>
                </div>
              </div>
            </el-col>
          </el-row>
          <el-row :gutter="20">
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>区县合格证编号：</p>
                <el-tooltip
                  class="item"
                  effect="dark"
                  :content="mainData.numberStr"
                  placement="top-start"
                >
                  <div class="boxItem_content_row_item_input">
                    <el-input v-model="mainData.numberStr" suffix placeholder="请输入内容"></el-input>
                  </div>
                </el-tooltip>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>备案通知书文号：</p>
                <el-tooltip
                  class="item"
                  effect="dark"
                  :content="mainData.symbolStr"
                  placement="top-start"
                >
                  <div class="boxItem_content_row_item_input">
                    <el-input v-model="mainData.symbolStr" suffix placeholder="请输入"></el-input>
                  </div>
                </el-tooltip>
              </div>
            </el-col>
            <el-col :span="8">
              <div class="boxItem_content_title">
                <p>项目基本情况：</p>
                <div class="boxItem_content_row_item_textarea">
                  <el-input
                    type="textarea"
                    :rows="3"
                    resize="none"
                    v-model="mainData.projectBasicInfo"
                    readonly
                  ></el-input>
                </div>
              </div>
            </el-col>
          </el-row>
        </div>
      </div>
      <div class="boxItem">
        <div class="boxItem_title">
          <span class="tit">合格证要件审查意见</span>
        </div>
        <div class="boxItem_content" style="padding-top:35px;">
          <div class="options">
            <p>经办人审查意见</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                readonly
                v-model="jingbanrenOpinion1"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+jingbanren1" alt />
                    <!-- <el-input :disabled="true" v-model="jingbanren1" suffix placeholder="请输入内容"></el-input> -->
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>
                  <el-date-picker
                    v-model="jingbanrenDate1"
                    type="date"
                    readonly
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <!-- <el-col :span="8">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="jingbanrenStatus1" disabled placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>-->
            </el-row>
          </div>
          <div class="options">
            <p>处室负责人审查意见</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                readonly
                v-model="chushirenOpinion1"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+chushiren1" alt />
                    <!-- <el-input :disabled="true" v-model="chushiren1" suffix placeholder="请输入内容"></el-input> -->
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>
                  <el-date-picker
                    v-model="chushirenDate1"
                    type="date"
                    readonly
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <!-- <el-col :span="8">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="chushirenStatus1" disabled placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>-->
            </el-row>
          </div>
          <div class="options">
            <p>中心分管领导审查意见</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                readonly
                v-model="fenguanLeaderOpinion1"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+fenguanLeader1" alt />
                    <!-- <el-input :disabled="true" v-model="fenguanLeader1" suffix placeholder="请输入内容"></el-input> -->
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>
                  <el-date-picker
                    v-model="fenguanLeaderDate1"
                    type="date"
                    readonly
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <!-- <el-col :span="8">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="fenguanLeaderStatus1" disabled placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>-->
            </el-row>
          </div>
        </div>
      </div>
      <div class="boxItem">
        <div class="boxItem_title">
          <span class="tit">耕保处审批</span>
        </div>
        <div class="boxItem_content" style="padding-top:35px;">
          <div class="options" v-if="nowType==1 || nowType==2 || nowType==3">
            <p>耕保处经办人意见</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                v-model="jingbanrenOpinion"
                :readonly="isReadonly1"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+jingbanren" alt />
                    <!-- <el-input :disabled="true" v-model="jingbanren"  suffix placeholder="请输入内容"></el-input> -->
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>
                  <el-date-picker
                    v-model="jingbanrenDate"
                    type="date"
                    :readonly="isReadonly1"
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <el-col :span="8" v-if="!isReadonly1">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="jingbanrenStatus" placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>
            </el-row>
            <div class="btn" v-if="isBtn1">
              <el-button type="primary" :loading="isLoading" @click="btnTijiao">提交</el-button>
            </div>
          </div>
          <div class="options" v-if="nowType==2 || nowType==3">
            <p>耕保处审核人意见</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                v-model="chushirenOpinion"
                :readonly="isReadonly2"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+chushiren" alt />
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>

                  <el-date-picker
                    v-model="chushirenDate"
                    type="date"
                    :readonly="isReadonly2"
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <el-col :span="8" v-if="!isReadonly2">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="chushirenStatus" placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>
            </el-row>
            <div class="btn" v-if="isBtn2">
              <el-button type="primary" :loading="isLoading" @click="btnTijiao">提交</el-button>
            </div>
          </div>
        </div>
      </div>
      <div class="boxItem" v-if="nowType==3">
        <div class="boxItem_title">
          <span class="tit">局领导审签</span>
        </div>
        <div class="boxItem_content" style="padding-top:35px;">
          <div class="options">
            <p>局领导审签</p>
            <div class="boxItem_content_row_item_noFlex_textarea">
              <el-input
                type="textarea"
                :rows="3"
                v-model="fenguanLeaderOpinion"
                :readonly="isReadonly3"
                placeholder="请输入内容"
              ></el-input>
            </div>
            <el-row class="options_row">
              <el-col :span="8">
                <div class="options_row_title">
                  <p>签字：</p>
                  <div class="options_row_img">
                    <img :src="$https+fenguanLeader" alt />
                    <!-- <el-input :disabled="true" v-model="fenguanLeader" suffix placeholder="请输入内容"></el-input> -->
                  </div>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="options_row_title">
                  <p>日期：</p>
                  <el-date-picker
                    v-model="fenguanLeaderDate"
                    type="date"
                    :readonly="isReadonly3"
                    value-format="yyyy-MM-dd"
                    placeholder="选择日期时间"
                  ></el-date-picker>
                </div>
              </el-col>
              <el-col :span="8" v-if="!isReadonly3">
                <div class="options_row_title">
                  <p>状态：</p>
                  <el-select v-model="fenguanLeaderStatus" placeholder="请选择">
                    <el-option label="同意" value="APPROVED"></el-option>
                    <el-option label="拒绝" value="REJECTED"></el-option>
                  </el-select>
                </div>
              </el-col>
            </el-row>
          </div>
          <div class="btn" v-if="isBtn3">
            <!-- <el-button type="primary">提交</el-button> -->
            <el-button type="primary" :loading="isLoading" @click="btnTijiao">提交</el-button>
          </div>
        </div>
      </div>
    </div>

    <el-dialog :close-on-click-modal="false" title="合格证配号申请审批表" :visible.sync="tableDialog" width="50%">
      <div style="padding:20px">
        <iframe
          frameborder="0"
          name="showHere"
          style="width:100%;min-height:500px;"
          scrolling="auto"
          :src="$https+dataInfo.filePath"
        ></iframe>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="tableDialog = false">取 消</el-button>
        <el-button type="primary" @click="btnOK">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
import {
  getCertificateApplication,
  saveAgentOpinion,
  saveAuditorOpinion,
  saveBureauLeaderOpinion,
  queryOpinion,
  getSpTable
} from "@/api/hegezhengPeihao";
import { queryYaojianOpinion } from "@/api/shijiChouchaFuhe";
import { getTime } from "@/api/getTime";
import { findById } from "@/api/common";
import optionList from "@/components/optionList";
export default {
  components: {
    optionList
  },
  data() {
    return {
      optionListCode: "QualifiedCertificateApplicationSecondAudit",
      flag: "1",
      value1: "",
      fullLoaing: false,
      mainData: "",
      shenChaType: 1, //审查类型 1:区县中心初审意见 2:区县局初审意见
      shenchaStatus: "", //审查状态
      shencharen: "测试人", //审查人
      shencharenId: 5, //审查人
      shenChaContent: "", //审查内容
      shenChaTime: "", //审查时间

      fenguanLeaderOpinion: "", //中心分管领导意见
      fenguanLeader: "", //中心分管领导
      fenguanLeaderDate: "", //中心分管领导日期，
      fenguanLeaderStatus: "", //中心分管领导状态

      chushirenOpinion: "", //处室人意见
      chushiren: "", //处室人
      chushirenDate: "", //处室日期，
      chushirenStatus: "", //处室状态

      jingbanrenOpinion: "", //经办人意见
      jingbanren: "", //经办人
      jingbanrenDate: "", //经办日期，
      jingbanrenStatus: "", //经办状态
      nowType: 1,

      jingbanrenOpinion1: "", //经办人意见
      jingbanren1: "", //经办人
      jingbanrenDate1: "", //经办日期，
      jingbanrenStatus1: "", //经办状态

      chushirenOpinion1: "", //处室人意见
      chushiren1: "", //处室人
      chushirenDate1: "", //处室日期，
      chushirenStatus1: "", //处室状态

      fenguanLeaderOpinion1: "", //中心分管领导意见
      fenguanLeader1: "", //中心分管领导
      fenguanLeaderDate1: "", //中心分管领导日期，
      fenguanLeaderStatus1: "", //中心分管领导状态

      isLoading: false,
      isReadonly1: false,
      isReadonly2: false,
      isReadonly3: false,

      isBtn1: false,
      isBtn2: false,
      isBtn3: false,

      tableDialog: false,
      dataInfo: "",
      userIcon: "" //用户签名照
    };
  },
  created() {
    if (
      localStorage.getItem("router") ==
      "QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_FIRST_OPINION"
    ) {
      this.nowType = 1;
      this.isReadonly1 = false;
      if (localStorage.getItem("menusName") == "ROLE_SJYWCSJBR") {
        this.isReadonly1 = false;
        this.isBtn1 = true;
      } else {
        this.isReadonly1 = true;
        this.isBtn1 = false;
      }
    } else if (
      localStorage.getItem("router") ==
      "QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_SECOND_OPINION"
    ) {
      this.nowType = 2;
      this.isReadonly1 = true;
      this.isReadonly2 = true;
      this.isBtn1 = false;
      this.isBtn2 = false;
      if (localStorage.getItem("menusName") == "ROLE_SJYWCSFZR") {
        this.isReadonly1 = true;
        this.isBtn1 = false;
        this.isReadonly2 = false;
        this.isBtn2 = true;
      } else {
        this.isReadonly1 = true;
        this.isBtn1 = false;
        this.isReadonly2 = true;
        this.isBtn2 = false;
      }
    } else if (
      localStorage.getItem("router") ==
      "QUALIFIED_CERTIFICATE_APPLICATION_THIRD_AUDIT_THIRD_OPINION"
    ) {
      this.nowType = 3;
      this.isReadonly1 = true;
      this.isReadonly2 = true;
      this.isReadonly3 = true;
      this.isBtn1 = false;
      this.isBtn2 = false;
      this.isBtn3 = false;
      if (localStorage.getItem("menusName") == "ROLE_SJFGFJZ") {
        this.isReadonly1 = true;
        this.isBtn1 = false;
        this.isReadonly2 = true;
        this.isBtn2 = false;
        this.isReadonly3 = false;
        this.isBtn3 = true;
      } else {
        this.isReadonly1 = true;
        this.isBtn1 = false;
        this.isReadonly2 = true;
        this.isBtn2 = false;
        this.isReadonly3 = true;
        this.isBtn3 = false;
      }
    } else {
      this.nowType = 3;
      this.isReadonly1 = true;
      this.isBtn1 = false;
      this.isReadonly2 = true;
      this.isBtn2 = false;
      this.isReadonly3 = true;
      this.isBtn3 = false;
    }

    if (localStorage.getItem("lookStatus") == 2) {
      this.isReadonly1 = true;
      this.isBtn1 = false;
      this.isReadonly2 = true;
      this.isBtn2 = false;
      this.isReadonly3 = true;
      this.isBtn3 = false;
    }
    this.getData();
    this.jingbanrenDate = getTime();
    this.chushirenDate = getTime();
    this.fenguanLeaderDate = getTime();
    this.getOpionion();
    this.getYaojianOpinion();
  },
  methods: {
    btnOK() {
      this.$confirm("当前流程办理完成", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消"
      })
        .then(() => {
          this.$router.push({
            path: "/xmss/ywdeal"
          });
        })
        .catch(() => {});
    },
    //切换选项卡
    handleClick(tab, event) {
      console.log(tab, event);
    },
    //获取用户信息
    userInfo() {
      var data = {
        id: localStorage.getItem("userId")
      };
      findById(data).then(res => {
        console.log(res, "用户信息");
        this.userIcon = res.data.signedPhoto;
      });
    },
    getYaojianOpinion() {
      //要件意见
      let obj = {
        projectId: localStorage.getItem("projectId")
      };
      queryYaojianOpinion(obj).then(res => {
        this.jingbanrenOpinion1 = res.data.agentOpinion;
        this.jingbanren1 = res.data.agentDto.signedPhoto;
        this.jingbanrenDate1 = res.data.agentAuditDate;
        this.jingbanrenStatus1 = res.data.agentAuditResult;

        this.chushirenOpinion1 = res.data.officePeopleOpinion;
        this.chushiren1 = res.data.officePeople.signedPhoto;
        this.chushirenDate1 = res.data.officePeopleAuditDate;
        this.chushirenStatus1 = res.data.officePeopleAuditResult;

        this.fenguanLeaderOpinion1 = res.data.centerLeaderOpinion;
        this.fenguanLeader1 = res.data.centerLeader.signedPhoto;
        this.fenguanLeaderDate1 = res.data.centerLeaderAuditDate;
        this.fenguanLeaderStatus1 = res.data.centerLeaderAuditResult;
      });
    },
    getOpionion() {
      let obj = {
        projectId: localStorage.getItem("projectId")
      };
      queryOpinion(obj).then(res => {
        this.jingbanrenOpinion = res.data.agentOpinion;
        this.jingbanren =
          res.data.agentDto != null
            ? res.data.agentDto.signedPhoto
            : this.$store.state.user.userInfo.signedPhoto;
        this.jingbanrenDate =
          res.data.agentAuditDate != null ? res.data.agentAuditDate : getTime();
        this.jingbanrenStatus = res.data.agentAuditResult;

        this.chushirenOpinion = res.data.auditorOpinion;
        this.chushiren =
          res.data.auditorDto != null
            ? res.data.auditorDto.signedPhoto
            : this.$store.state.user.userInfo.signedPhoto;
        this.chushirenDate =
          res.data.auditorAuditDate != null
            ? res.data.auditorAuditDate
            : getTime();
        this.chushirenStatus = res.data.auditorAuditResult;

        this.fenguanLeaderOpinion = res.data.bureauLeaderOpinion;
        this.fenguanLeader =
          res.data.bureauLeaderDto != null
            ? res.data.bureauLeaderDto.signedPhoto
            : this.$store.state.user.userInfo.signedPhoto;
        this.fenguanLeaderDate =
          res.data.bureauLeaderAuditDate != null
            ? res.data.bureauLeaderAuditDate
            : getTime();
        this.fenguanLeaderStatus = res.data.bureauLeaderAuditResult;
      });
    },
    getData() {
      let obj = {
        projectId: localStorage.getItem("projectId")
      };
      this.fullLoaing = true;
      getCertificateApplication(obj)
        .then(res => {
          this.fullLoaing = false;
          if (res.data != null) {
            this.mainData = res.data;
          }
        })
        .catch(error => {
          this.fullLoaing = false;
        });
    },
    btnTijiao() {
      if (this.nowType == 1) {
        let obj = {
          projectId: localStorage.getItem("projectId"),
          opinion: this.jingbanrenOpinion,
          auditorId: localStorage.getItem("userId"),
          auditDate: this.jingbanrenDate,
          auditResult: this.jingbanrenStatus
        };
        this.isLoading = true;
        saveAgentOpinion(obj)
          .then(res => {
            this.isLoading = false;
            if (res.code == 1000) {
              this.$alert("当前流程办理完成", "提示", {
                confirmButtonText: "确定",
                callback: action => {
                  this.$router.push({
                    path: "/xmss/ywdeal"
                  });
                }
              });
              this.getOpionion();
              this.$refs.optionList.getProgress();
            }
          })
          .catch(error => {
            this.isLoading = false;
          });
      } else if (this.nowType == 2) {
        let obj = {
          projectId: localStorage.getItem("projectId"),
          opinion: this.chushirenOpinion,
          auditorId: localStorage.getItem("userId"),
          auditDate: this.chushirenDate,
          auditResult: this.chushirenStatus
        };
        this.isLoading = true;
        saveAuditorOpinion(obj)
          .then(res => {
            this.isLoading = false;
            if (res.code == 1000) {
              this.$alert("当前流程办理完成", "提示", {
                confirmButtonText: "确定",
                callback: action => {
                  this.$router.push({
                    path: "/xmss/ywdeal"
                  });
                }
              });
              this.getOpionion();
              this.$refs.optionList.getProgress();
            }
          })
          .catch(error => {
            this.isLoading = false;
          });
      } else if (this.nowType == 3) {
        let obj = {
          projectId: localStorage.getItem("projectId"),
          opinion: this.fenguanLeaderOpinion,
          auditorId: localStorage.getItem("userId"),
          auditDate: this.fenguanLeaderDate,
          auditResult: this.fenguanLeaderStatus
        };
        this.isLoading = true;
        saveBureauLeaderOpinion(obj)
          .then(res => {
            this.isLoading = false;
            if (res.code == 1000) {
              this.$confirm(
                "当前流程办理完成，是否查看合格证配号申请审批表？",
                "提示",
                {
                  confirmButtonText: "查看",
                  cancelButtonText: "返回",
                  closeOnClickModal: false
                }
              )
                .then(() => {
                  this.$router.push({
                    path: "/hegezhengPeihao/fileData/shenpiTable"
                  });
                })
                .catch(() => {
                  this.$router.push({
                    path: "/xmss/ywdeal"
                  });
                });
              this.getOpionion();
              this.$refs.optionList.getProgress();
              // let objdata = {
              //   projectId: localStorage.getItem("projectId")
              // };
              // getSpTable(objdata).then(res => {
              //   if (res.code == 1000) {
              //     this.dataInfo = res.data;
              //     this.tableDialog = true;
              //   }
              // });
            }
          })
          .catch(error => {
            this.isLoading = false;
          });
      }
    }
  }
};
</script>
<style lang="scss" scoped>
.btn {
  padding: 40px;
  border-top: none;
}
.money {
  font-size: 13px;
  color: #606266;
}
.projectMoney {
  padding-left: 150px;
}
#earlyStageAchievementOpinion {
  padding: 30px;
  box-sizing: border-box;
}
#earlyStageAchievementOpinion .boxItem {
  width: 100%;
  background-color: #fff;
}
#earlyStageAchievementOpinion .boxItem_title {
  width: 100%;
  background: #f8f8f8;
  height: 50px;
  border: 1px solid #efefef;
  overflow: hidden;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  text-indent: 20px;
  line-height: 50px;
}
#earlyStageAchievementOpinion .boxItem_content {
  width: 100%;
  border: 1px solid #ebebeb;
  border-top: none;
  padding: 30px;
  padding-top: 0;
  box-sizing: border-box;
}
#earlyStageAchievementOpinion .boxItem_content_row {
  display: flex;
  align-items: center;
}
#earlyStageAchievementOpinion .boxItem_content_row_item_input {
  position: relative;
}
#earlyStageAchievementOpinion
  .boxItem_content_row_item_input
  /deep/
  .el-input__inner {
  padding-right: 50px;
}
#earlyStageAchievementOpinion .boxItem_content_row_item_input span {
  position: absolute;
  right: 10px;
  top: 3px;
  height: 36px;
  line-height: 36px;
  z-index: 1;
  color: #999;
}

.boxItem_content_row_item_textarea {
  width: 100%;
}
.options {
  font-size: 13px;
  font-weight: bold;
  color: #444;
}
.options_row {
  margin-top: 15px;
  display: flex;
  align-items: center;
}
.options_row_title {
  display: flex;
  align-items: center;
}
.options_row_img img {
  width: 105px;
  height: 59px;
  margin-left: 20px;
}
.options_select {
  margin: 10px 0px;
}
.boxItem_content_row_item p:first-child {
  text-align: right;
  margin-right: 10px;
}
.boxItem_content_title {
  margin-bottom: 20px;
}
.boxItem_content_title p,
.options_row_title p,
.options p {
  font-size: 14px;
  font-weight: bold;
  color: #606266;
}
.boxItem_content_row_item_input {
  width: 50%;
}
</style>
 